// 本地存储方法

// set
export const setStroage = (key, value) => {
  localStorage.setItem(key, JSON.stringify(value))
}
// get
export const getStroage = key => {
  return JSON.parse(localStorage.getItem(key))
}

// remove
export const removeStroage = key => {
  localStorage.removeItem(key)
}

// clear
export const clearStorage = () => {
  localStorage.clear()
}
